#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QTcpServer>
#include <QTcpSocket>
#include <QDebug>

#include "data.h"

extern Data dat;

class TcpServer : public QObject
{
    Q_OBJECT
public:
    TcpServer();

    QTcpSocket *mTcpsocket;

    QTcpServer *mTcpserver;

public slots:
    void newConnect();

    void readMessage();

public:
    void sendMessage();
};

#endif // TCPSERVER_H
